/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.studysj.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 学习信息表Entity
 * @author wk
 * @version 2020-11-26
 */
@Table(name="study_sj", alias="a", columns={
		@Column(name="id", attrName="id", label="编号", isPK=true),
		@Column(name="username", attrName="username", label="用户名"),
		@Column(name="realname", attrName="realname", label="姓名"),
		@Column(name="movie", attrName="movie", label="电影名称"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class StudySj extends DataEntity<StudySj> {
	
	private static final long serialVersionUID = 1L;
	private String username;		// 用户名
	private String realname;		// 姓名
	private String movie;		// 电影名称
	
	public StudySj() {
		this(null);
	}

	public StudySj(String id){
		super(id);
	}
	
	@Length(min=0, max=64, message="用户名长度不能超过 64 个字符")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	@Length(min=0, max=64, message="姓名长度不能超过 64 个字符")
	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}
	
	@Length(min=0, max=64, message="电影名称长度不能超过 64 个字符")
	public String getMovie() {
		return movie;
	}

	public void setMovie(String movie) {
		this.movie = movie;
	}
	
}